package com.example.newfeature.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment

/**
 *
 *
 * @author: tuyrt7 on 2020/12/2.
 */
class CustomFragment(dependency: Dependency) : Fragment() {

}

class NestedFragment(dependency: Dependency) : Fragment() {
    private val childFragmentFactory = CustomFragmentFactory(Dependency())
    override fun onCreate(savedInstanceState: Bundle?) {
        childFragmentManager.fragmentFactory =childFragmentFactory
        super.onCreate(savedInstanceState)
        if (savedInstanceState == null) {
            // Add NestedNestedFragment
        }
    }
}

class NestedNestedFragment : Fragment()